package Day03;

public class OperDemo3 {
    public static void main(String[] args) {

        int a=6,b=21,c=6;

//        System.out.println(a<b && b>c);
//        System.out.println(a >= b && c<=b);
//        System.out.println(a>b && c>b);
//
//        System.out.println(a<b || c<b);
//        System.out.println(a==b || c<b);
//        System.out.println(a>b || c==b);
//
//        System.out.println(!(a!=c));

        //短路与和或
        boolean r = a>b && c++>6;
        System.out.println(r);
        System.out.println(c);

        r = a<b || c-- >6;
        System.out.println(r);
        System.out.println(c);


    }
}
